//
//  NearbyCell.m
//  7.13苏宁框架
//
//  Created by mini on 15/7/18.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import "NearbyCell.h"
#import "NearbyHeadModel.h"
@implementation NearbyCell
+(id)createCell:(UITableView*)tableView;
{
    static NSString *name = @"cell";
    NearbyCell *cell = [tableView dequeueReusableCellWithIdentifier:name];
    if (cell==nil) {
        cell = [[[NSBundle mainBundle]loadNibNamed:@"NearbyCell" owner:nil options:nil]lastObject];
    }
    return cell;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(NearbyHeadModel *)model
{
    _model = model;
    self.picture.image = [UIImage imageNamed:_model.image];
    self.title.text = _model.title;
    self.subtitle.text = _model.subtitle;
}
@end
